package com.johnlee.sentinel.learning.api.controller;

import com.johnlee.sentinel.learning.api.service.SentinelFeignAgent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private SentinelFeignAgent sentinelFeignAgent;

    @GetMapping("helloCloudFeign")
    public String helloCloudFeign(){
        return sentinelFeignAgent.helloCloudFeign();
    }
}
